SELECT 
    account,name,alternative_name,tradingas,address1,address2,address3,address4,postcode,country,deliver1,deliver2,deliver3,deliver4,d_postcode,group,
    subgroup 
FROM Debtors; 
CustomersFromSQL.csv;

SELECT 
    code, barcode, descript, alt_descript, department, subdepartm, category, itemcategory, packsize, sellprice1, sellprice2, sellprice3, sellprice4, 
    sellprice5, sellprice6, sellprice7, sellprice8, sellprice9, sellprice10, sellpinc1, sellpinc2, sellpinc3, sellpinc4, sellpinc5, sellpinc6, sellpinc7, 
    sellpinc8, sellpinc9, sellpinc10, avrgcost, isactive, vatexcempt, volumetrics, volumetricsqty, volumetricsqty2, volumetricsqty3, volumetricsrounding, 
    brand, model 
FROM Stock;
ProductsFromSQL.csv;

SELECT 
    PrcLst.list, PrcLst.code, PrcLst.sdate, PrcLst.edate, PrcLst.price, PrcLst.disc, PrcLst.sdate2, PrcLst.edate2, PrcLst.price2, PrcLst.disc2, 
    PRCLSTS.desc, PRCLSTS.isinclusive 
FROM PrcLst 
INNER JOIN PRCLSTS 
ON 
    PrcLst.list = PRCLSTS.number;
PriceListsFromSQL.csv;

SELECT 
    account, contact, address1, address2, address3, address4, number, cellphone, email, postalcode 
FROM DebtDelv;
ContactsFromSQL.csv;